* {
    padding: 0;
    margin: 0;
}
body,html{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f7;
    height: 100%;
    margin: 0 auto;
}
h1{
    margin: 0.2rem;
    font-size:1.2rem;
}
p{
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight:100;
    margin: 1.2rem 0;
    letter-spacing: 0.1rem;
}
span{
    font-size:0.8rem;
    margin: 1.2rem 0;

}
a{
    color: #333;
    font-size: 1rem;
    text-decoration: none;

}
.body-container{
    position: relative;
    background-color:transparent;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.3),0 10px 10px rgba(0,0,0,0.22);
    width: 50rem;
    height: 35rem;
    overflow: hidden;
    max-width: 100vw;
    min-height: 70vh;
}
.form-container {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 100%;
    width: 50%;
}
.signway{
    margin: 1rem 0;
}
.signway span{
    font-size:1rem;
    font-weight: 700;
}
.signway a{
    padding: 0 0.5rem;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 1.8rem;
    width: 1.8rem;
}
.signway a:hover{
    transform: scale(0.95,0.95);
    opacity: 0.8;
}
.form-container input {
    width: 90%;
    height: 2.2rem;
    text-indent: 1rem;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
    margin-top: 2rem;
    transition: all 0.5s ease-in;
}
.form-container input:focus{
    border-bottom: 1px solid blue;
}
.sign-in-button,
.sign-up-button{
    font-size: 1rem;
    font-weight: normal;
    padding: 0.4rem 1rem;
    background-color: #417dff;
    border: 1px solid #fff;
    outline: none;
    cursor: pointer;
    width: 5rem;
    color: white;
    border-radius: 8px;
    transition: all 100ms ease-in-out;
    margin: 0.8rem;
}
.sign-in-button:active,
.sign-up-button:active{
    transform: scale(0.9,0.9);
}
.overlay-container {
    position: absolute;
    right:0;
    top:0;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.overlay-signin,
.overlay-signup{
    background-color: transparent;
    cursor: pointer;
    border-color: #fff;
    border: 1px solid #fff;
    outline: none;
    width: 5rem;
    border-radius: 8px;
    transition: all 500ms ease-in;
    margin: 0.6rem 0;
    padding: 0.5rem 0;
    color: white;
    font-size: 0.6rem;
}
.overlay-signin:active,
.overlay-signup:active{
    transform: scale(0.95,0.95);
}
.sign-in-container{
    left: 0;
    z-index: 99;
    transition: all 0.5s ease-in-out;
}
.sign-up-container {
    z-index: 98;
    left: 0;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}
.overlay {
    position: absolute;
    top:0;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: skyblue;
    width: 100%;
    height: 100%;
}
.sign-in-overlay{
    z-index:99;
    transition: all 0.5s ease-in-out;
}
.sign-up-overlay{
    opacity: 1;
    transition: all 0.5s ease-in-out;
}
.signup-overlay-active {
    z-index:100;
    opacity: 1;
    transform:translateX(-100%);
}
.signin-overlay-active {
    opacity: 0;
}
.signup-form-active{
    z-index:100;
    opacity: 1;
    transform: translateX(100%);
}
.signin-form-active{
    z-index: 0;
    opacity: 0;
}